<form method="post" action="<?php echo base_url()."index.php/user/add"?>">
	<fieldset style="width: 50%;" class="full-border">
		<legend>User Account</legend>
		<span style="color:red"><?php if(isset($error)) echo $error;?></span>
		
		<dl>
			<dt>Username:</dt>
			<dd><input style="min-width: 30%" type="text" name="user"/></dd>
		</dl>
		<dl>
			<dt>Password:</dt>
			<dd><input style="min-width: 30%" type="password" name="pass"/></dd>
		</dl>
		<fieldset class ="full-border" style="width: 95%">
			<legend>API</legend>
			<?php foreach($apis as $item){?>
			<dl style="width: auto">
				<dt style="width: 15px;">
					<input type="checkbox" name="api[]" value="<?php echo $item->id?>"/>
				</dt>
				<dd>
					<?php echo $item->name?>
				</dd>
			</dl>
			<?php }?>
		</fieldset>
		<dl><input type="submit" name="save" value="Save" style="position: relative;"/></dl>
		
	</fieldset>
</form>